package com.ruoyi.wallet.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.wallet.api.domain.ErpSellerStoreWalletLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

@FeignClient(contextId = "remoteWalletExpandService", value = ServiceNameConstants.WALLET_SERVICE)
public interface RemoteWalletExpandService {


    /**
     * 获取测评钱包金额
     * @param userId
     * @return
     */
    @GetMapping("/seller/sellerStoreWalletExpend/getWalletExpend")
    R<Object> getEvaluationWallet(@RequestParam("userId") Long userId);

    /**
     * 修改金额
     */
    @GetMapping("/seller/sellerStoreWalletExpend/updateEvaluationAmount")
    R<Object> updateEvaluationAmount(@RequestParam("flowType") Integer flowType
            , @RequestParam("expenseType") Integer expenseType, @RequestParam("payType") Integer payType
            , @RequestParam("sellerId") Long sellerId
            , @RequestParam("money") BigDecimal money, @RequestParam("remark") String remark);
}
